package hc.bre.policy

import hc.bre.cmn.ListOption

@groovy.transform.CompileStatic
@groovy.transform.ToString(includeNames=true,includePackage=false)
class ReasonItem extends ListOption{
	static public final nothing = new ReasonItem(id:0,code:'',name:'');
	
	//TODO maybe be removed in future
	String type;

	Object script = 'true'	//script text or closure

	@Override
	public ReasonItem load(Map map) {
		super.load(map);

		type=  map['type'];
		script=  map['script'];

		return this;
	}


}